package com.ruyuan.scholartrade.controller;

import com.scholar.shop.common.CommonRes;
import com.scholar.shop.trad.wechatSmallchange.api.WechatSmallchangeAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author fk
 * @version v2.0
 * @Description: 微信零钱接口client
 * @date 2018/8/13 16:01
 * @since v7.0.0
 */
@RestController
@CrossOrigin
@RequestMapping("/trade/wechatSmallchange/open/api")
public class WechatSmallchangeController  {

    @Autowired
    private WechatSmallchangeAPI wechatSmallchangeAPI;
    @PostMapping("/autoSend")
    public CommonRes<Boolean> autoSend(@RequestParam String  openId, @RequestParam Double price, @RequestParam String ip, @RequestParam String sn) {

        return this.wechatSmallchangeAPI.autoSend(openId,price,ip,sn) ;
    }
}
